package com.project.bean;

import java.time.LocalDate;


/**
 *
 * 用户的实体类
 */
public class UserBean {
    /**编号*/
    private int id;
    /**用户名*/
    private String name;
    /**密码*/
    private String password;
    /**生日*/
    private LocalDate birthday;


    public UserBean() {
    }

    public UserBean(String name, String password, LocalDate birthday) {
        this.name = name;
        this.password = password;
        this.birthday = birthday;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }



    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                '}'+"\n";
    }
}
